import request from '../../utils/request';

export const getPage = (query) => {
    return request({
        url: '/activity/getPage',
        method: 'post',
        data: query
    })
}

export const addActivity = (query) => {
    return request({
        url: '/activity/add',
        method: 'post',
        data: query
    })
}

export const editActivity = (query) => {
    return request({
        url: '/activity/edit',
        method: 'post',
        data: query
    })
}

export const updateStatus = (query) => {
    return request({
        url: '/activity/updateStatus',
        method: 'post',
        data: query
    })
}

export const deleteActivity = (query) => {
    return request({
        url: '/activity/delete',
        method: 'post',
        data: query
    })
}

export const getActivityInfo = (query) => {
    return request({
        url: '/activity/edit/get/'+query,
        method: 'get'
    })
}

export const getApplyInfoList = (query) => {
    return request({
        url: '/activity/getApplyInfoList',
        method: 'post',
        data: query
    })
}
export const updateApplyStatus = (query) => {
    return request({
        url: '/activity/updateApplyStatus',
        method: 'post',
        data: query
    })
}
export const getExternalByActivityId = (query) => {
    return request({
        url: '/activity/getExternalByActivityId',
        method: 'post',
        data: query
    })
}

export const updateActivityApply = (query) => {
    return request({
        url: '/activity/updateActivityApply',
        method: 'post',
        data: query
    })
}



